<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:t="http://myfaces.apache.org/tomahawk">

<body>
<ui:composition template="/WEB-INF/facelets/template.xhtml">

<ui:define name="title">
  Welcome to Rapid Appointment System!
</ui:define>

<ui:define name="header">
  <ui:include src="/WEB-INF/facelets/header.xhtml"/>
</ui:define>

<ui:define name="menu">
  <ui:include src="/WEB-INF/facelets/menu.xhtml"/>
</ui:define>

<ui:define name="body">
	<div>
		Welcome to the rapid appointment system.
		<h:form>
		Email address:
			<h:inputText value="#{loginBean.loginName}"/><BR/>
		Password:
			<h:inputSecret value="#{loginBean.password}"/>
		<BR/>
			<h:commandButton value="Login"
			action="#{loginBean.authenticate}"/>
		<BR/>
			<h:commandLink value="Sign Me Up!"
			action="#{loginBean.register}"/>
		</h:form>
		
	</div>
</ui:define>

<ui:define name="footer">
  <ui:include src="/WEB-INF/facelets/footer.xhtml"/>
</ui:define>
</ui:composition>
</body></html>